package com.muyu.danmo.service.impl;

import com.muyu.danmo.domain.DanmoTrainingTeacher;
import com.muyu.danmo.mapper.DanmoTrainingTeacherMapper;
import com.muyu.danmo.service.IDanmoTrainingTeacherService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 培训班教师Service业务层处理
 * 
 * @author yangle
 * @date 2024-11-26
 */
@Service
public class DanmoTrainingTeacherServiceImpl implements IDanmoTrainingTeacherService
{
    @Autowired
    private DanmoTrainingTeacherMapper danmoTrainingTeacherMapper;

    /**
     * 查询培训班教师
     * 
     * @param id 培训班教师主键
     * @return 培训班教师
     */
    @Override
    public DanmoTrainingTeacher selectDanmoTrainingTeacherById(Long id)
    {
        return danmoTrainingTeacherMapper.selectDanmoTrainingTeacherById(id);
    }

    /**
     * 查询培训班教师列表
     * 
     * @param danmoTrainingTeacher 培训班教师
     * @return 培训班教师
     */
    @Override
    public List<DanmoTrainingTeacher> selectDanmoTrainingTeacherList(DanmoTrainingTeacher danmoTrainingTeacher)
    {
        return danmoTrainingTeacherMapper.selectDanmoTrainingTeacherList(danmoTrainingTeacher);
    }

    /**
     * 新增培训班教师
     * 
     * @param danmoTrainingTeacher 培训班教师
     * @return 结果
     */
    @Override
    public int insertDanmoTrainingTeacher(DanmoTrainingTeacher danmoTrainingTeacher)
    {
        return danmoTrainingTeacherMapper.insertDanmoTrainingTeacher(danmoTrainingTeacher);
    }

    /**
     * 修改培训班教师
     * 
     * @param danmoTrainingTeacher 培训班教师
     * @return 结果
     */
    @Override
    public int updateDanmoTrainingTeacher(DanmoTrainingTeacher danmoTrainingTeacher)
    {
        return danmoTrainingTeacherMapper.updateDanmoTrainingTeacher(danmoTrainingTeacher);
    }

    /**
     * 批量删除培训班教师
     * 
     * @param ids 需要删除的培训班教师主键
     * @return 结果
     */
    @Override
    public int deleteDanmoTrainingTeacherByIds(Long[] ids)
    {
        return danmoTrainingTeacherMapper.deleteDanmoTrainingTeacherByIds(ids);
    }

    /**
     * 删除培训班教师信息
     * 
     * @param id 培训班教师主键
     * @return 结果
     */
    @Override
    public int deleteDanmoTrainingTeacherById(Long id)
    {
        return danmoTrainingTeacherMapper.deleteDanmoTrainingTeacherById(id);
    }
}
